<html data-dpr="1" style="font-size: 37.5px;">
 <head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
  <meta id="i18n_pagename" content="tklnfo2-common">
  <title>{:C('sitename')}-取出信息</title>
  <link href="/ascss/1.css" rel="stylesheet" />
  <link href="/ascss/mui/css/mui.min.css" rel="stylesheet" />
  <link href="/ascss/ek.css" rel="stylesheet" />
  <link href="/ascss/user.css" rel="stylesheet" />
  <style type="text/css" title="fading circle style">
  	.circle-color-12 > div::before { background-color: #ccc; }
  	.bink_card{padding: 10px 40px;}
  	.bink_card_ul li{background-color: #151936 !important;padding: 0 !important;position: relative;}
  	.bink_card_ul li h4[data-v-227506cc]{text-indent: 5px;color: #fff;line-height: 30px;}
  	.bink_card_ul .img-wrap {position: absolute; right: 5px;bottom: -10px;width: 35px;height: 40px;float: left;}
  	.bink_card_ul li input[data-v-227506cc]{text-indent: 0;background: none;border-radius: 0;border: 0;border-bottom: 1px solid #383e63;padding: 10px 5px;height: 40px;float: left;margin: 0 auto;color: #f2f2f2;width: 100%;}
  	.remind[data-v-23a3b700]{width:100%;background:#0a91fb;color:#fff}
  	.remind[data-v-23a3b700] p{color:#fff}
  	</style>
     <script>
    (function (win, lib) {
      var doc = win.document
      var docEl = doc.documentElement
      var metaEl = doc.querySelector('meta[name="viewport"]')
      var flexibleEl = doc.querySelector('meta[name="flexible"]')
      var dpr = 0
      var scale = 0
      var tid
      var flexible = lib.flexible || (lib.flexible = {})
 
      if (metaEl) {
        console.warn('将根据已有的meta标签来设置缩放比例')
        var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
        if (match) {
          scale = parseFloat(match[1])
          dpr = parseInt(1 / scale)
        }
      } else if (flexibleEl) {
        var content = flexibleEl.getAttribute('content')
        if (content) {
          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/)
          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/)
          if (initialDpr) {
            dpr = parseFloat(initialDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
          if (maximumDpr) {
            dpr = parseFloat(maximumDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
        }
      }
 
      if (!dpr && !scale) {
        var isAndroid = win.navigator.appVersion.match(/android/gi)
        var isIPhone = win.navigator.appVersion.match(/iphone/gi)
        var devicePixelRatio = win.devicePixelRatio
//          if (isIPhone) {
//            // iOS下，对于2和3的屏，用2倍的方案，其余的用1倍方案
//            if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
//              dpr = 3;
//            } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
//              dpr = 2;
//            } else {
//              dpr = 1;
//            }
//          } else {
//            // 其他设备下，仍旧使用1倍的方案
//            dpr = 1;
//          }
        dpr = 1
        scale = 1 / dpr
      }
 
      docEl.setAttribute('data-dpr', dpr)
      if (!metaEl) {
        metaEl = doc.createElement('meta')
        metaEl.setAttribute('name', 'viewport')
        metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no')
        if (docEl.firstElementChild) {
          docEl.firstElementChild.appendChild(metaEl)
        } else {
          var wrap = doc.createElement('div')
          wrap.appendChild(metaEl)
          doc.write(wrap.innerHTML)
        }
      }
 
      function refreshRem () {
        var width = docEl.getBoundingClientRect().width
        if (width / dpr > 540) {
          width = 540 * dpr
        }
        var rem = width / 10
        docEl.style.fontSize = rem + 'px'
        flexible.rem = win.rem = rem
      }
 
      win.addEventListener('resize', function () {
        clearTimeout(tid)
        tid = setTimeout(refreshRem, 300)
      }, false)
      win.addEventListener('pageshow', function (e) {
        if (e.persisted) {
          clearTimeout(tid)
          tid = setTimeout(refreshRem, 300)
        }
      }, false)
 
      if (doc.readyState === 'complete') {
//          doc.body.style.fontSize = 12 * dpr + 'px';
        doc.body.style.fontSize = 16 + 'px'
      } else {
        doc.addEventListener('DOMContentLoaded', function (e) {
//            doc.body.style.fontSize = 12 * dpr + 'px';
          doc.body.style.fontSize = 16 + 'px'
        }, false)
      }
 
      refreshRem()
 
      flexible.dpr = win.dpr = dpr
      flexible.refreshRem = refreshRem
      flexible.rem2px = function (d) {
        var val = parseFloat(d) * this.rem
        if (typeof d === 'string' && d.match(/rem$/)) {
          val += 'px'
        }
        return val
      }
      flexible.px2rem = function (d) {
        var val = parseFloat(d) / this.rem
        if (typeof d === 'string' && d.match(/px$/)) {
          val += 'rem'
        }
        return val
      }
 
    })(window, window['lib'] || (window['lib'] = {}))
  </script>
  <!-- 环境判断:测试、正式 -->
  <script>
    var host = window.location.host
    ;(function isFormalEnv(host){
      if(host.indexOf('kw13.cn') !== -1){
        window.isFormalEnv = true
        window.isTestEnv = false
      } else if(host.indexOf('kwmzy.com') !== -1) {
        window.isTestEnv = true
        window.isFormalEnv = false
      }
    })(host)
  </script>
  <!-- 腾讯移动统计配置 -->
  <script>
    var mtah5 = {}
    if(window.isFormalEnv){
      mtah5.sid = 500411881
      mtah5.cid = 500432840
    } else { // 本地、测试环境使用
      mtah5.sid = 500412096
      mtah5.cid = 500426037
    }
    var _mtac = {"performanceMonitor":1,"senseQuery":1};
    (function() {
      var mta = document.createElement("script");
      mta.setAttribute("name", "MTAH5");
      mta.setAttribute("sid", mtah5.sid);
      mta.setAttribute("cid", mtah5.cid);
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(mta, s);
    })();
  </script>
  <script>
    window.origin = window.location.origin
  </script>
 </head>
 <body style="font-size: 12px;">
 	<header class="mui-bar mui-bar-nav top-status"><a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;" onclick="javascript :history.back(-1);"></a> <div class="flex-start headerContent"><img src="/images/static/menu.png" height="16"><div class="logoText" data-language="qbgl-qbgl">钱包管理</div></div></header>
  <div id="app">
   <div data-v-227506cc="" class="main">
   <form class="m-t form-horizontal " role="form" method="post" action="{:U('Home/User/tkInfoPost')}"
              id="LoginForm">
    <!--div data-v-227506cc="" class="header">
     <div class="left_btn" onclick="location.href='/Home/Run/index'">
      <img style="margin-top:13px;"src="/asimages/fanhui.png" alt="" class="return" />
     </div> 
     <div class="Maintitle">
      <h3>提款信息</h3>
     </div> 
     <div class="right_btn"></div>
    </div--> 
    <button data-v-227506cc="" style="display: none;">点击设置信息</button> 
    <div data-v-227506cc="" class="bink_card">
     <!--h3 data-v-227506cc="">提款信息</h3--> 
     <ul data-v-227506cc="" class="bink_card_ul">
      <li data-v-227506cc=""><h4 data-v-227506cc="" data-language="qbgl-yhkh" style="width:100%">币种</h4> 
	  <input data-v-227506cc="" class="i18n-input" style="padding:0" type="text" id="bank" name="bank" value="{$info?$info['bank']:''}"  selectname="qbgl-qsryh" selectattr="placeholder" placeholder="币种" /></li> 
      <li style="margin-top: 10px;"data-v-227506cc=""><h4 data-v-227506cc="" data-language="qbgl-khh" style="width:100%">收货地址</h4> 
	  <input data-v-227506cc="" class="i18n-input" style="padding:0" type="text" id="bank_name" name="bank_name" value="{$info?$info['bank_name']:''}"  selectname="qbgl-qsrkh" selectattr="placeholder" placeholder="请输入收货地址" /></li>  
      <li style="margin-top: 10px;"data-v-227506cc=""><h4 data-v-227506cc="" data-language="qbgl-skr" style="width:100%">UID</h4> 
	  <input data-v-227506cc="" class="i18n-input" style="padding:0" type="text" id="bank_user" name="bank_user" value="{$info?$info['bank_user']:''}"  selectname="qbgl-qsrsk" selectattr="placeholder" placeholder="UID" /></li> 
<div style="    margin: 20 auto;" data-v-23a3b700="" class="remind">
     <p style="margin: 2px;" data-v-23a3b700="" data-language="qbgl-xgtk">修改提款信息请联系客服</p>
    </div>
	  <php>
                if($info){}
                else{
            </php>
      <li style="margin-top: 10px;"data-v-227506cc=""><h4 data-v-227506cc="">提款密码</h4> 
	  <input data-v-227506cc="" type="text" id="tk_pwd" name="tk_pwd" placeholder="请输入提款密码" /></li> 
     </ul>
    </div> 
	<div style="margin-top: 10px;padding-top:10px;"data-v-227506cc="" class="agree">
     <div data-v-227506cc="" class="agree_top">
      <input data-v-227506cc="" type="checkbox" id="agree" /> 
      <label data-v-227506cc="" for="agree">我已同意《服务协议》</label>
     </div> 
     <div data-v-227506cc="" class="agree_bottom">
      <p data-v-227506cc="">尊敬的用户，为了保障您的资金安全，请您绑定您的真实姓名和设置取款密码。如果姓名与开户名不一致，将无法取款。</p>
     </div>
    </div> 
	<input type="hidden" name="uid" value="{$userinfo.id}">
    <button data-v-227506cc="" type="submit" class="btn btn-success block full-width m-b">确定绑卡</button>
	<php>
                }
            </php>
   </form>
   </div>
  </div>
<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/ascss/js/jquery.i18n.properties.js"></script>
		<script src="/ascss/js/language.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>

<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">

    $(function () {
        $('#LoginForm').ajaxForm({
            beforeSubmit: checkForm,
            success: complete,
            dataType: 'json'
        });

        function checkForm() {
            if (!$("#bank").val()) {
                layer.alert('银行卡号不能为空', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#bank').focus();
                });
                return false;
            }

            if ( $("#bank").val().length  < 16 || $("#bank").val().length  > 19 ) {
                layer.alert('银行卡号长度必须在16到19之间', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#bank').focus();
                });
                return false;
            }

            var num = /^\d*$/;//全数字
            if ( !num.exec($("#bank").val()) ) {
                layer.alert('银行卡号必须全为数字', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#bank').focus();
                });
                return false;
            }


            if (!$("#bank_name").val()) {
                layer.alert('开户行不能为空', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#bank_name').focus();
                });
                return false;
            }
            if (!$("#bank_user").val()) {
                layer.alert('收款人不能为空', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#bank_user').focus();
                });
                return false;
            }
            if (!$("#tk_pwd").val()) {
                layer.alert('提款密码不能为空', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#tk_pwd').focus();
                });
                return false;
            }
            if ($("#pwd").val() == $("#tk_pwd").val()) {
                layer.alert('提款密码与登录密码不能一致', {icon: 5}, function (index) {
                    layer.close(index);
                    $('#pwd').focus();
                });
                return false;
            }

        }

        function complete(data) {
            if (data.status == 1) {
                $('.btn').attr('disabled', 'disabled');
                layer.msg(data.info, function (index) {
                    layer.close(index);
                    window.location.href = data.url;
                });
            } else {
                layer.msg(data.info);
                $('#pwd').val('').focus();
                return false;
            }
        }
    });
</script>
<script src="__PUBLIC__/Home/js/cls.js"></script>
 </body>
</html>